package com.biz.primus.ms.member.dao.repository;

import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.member.dao.po.MemberFavourite;

import java.util.List;

/**
 *
 * @author jun.liu
 * @usage
 * @reviewer
 * @since 2017-10-23
 */
public interface MemberFavouriteRepository extends CommonJpaRepository<MemberFavourite, Long>, MemberFavouriteDao
{
    List<MemberFavourite> findByMemberIdAndDeleteFlag(Long memberI, Boolean deleteFlag);

    MemberFavourite findByMemberIdAndProductCode(Long memberId, String productCode);

    List<MemberFavourite> findByMemberIdAndProductCodeIn(Long memberId, List<String> productCodes);
}
